{{ define "content" }}

<div class="nav-title">
    <a href="/">{{.SiteCf.Name}}</a> &raquo; 会员：{{.Uobj.Name}}
</div>

<div class="main-box">
    <div class="member-avatar"><img src="/static/avatar/{{.Uobj.Avatar}}.jpg" alt="{{.Uobj.Name}}" /></div>
    <div class="member-detail">
        <p>会员：<strong>{{.Uobj.Name}}</strong> (第{{.Uobj.Id}}号会员，{{.Uobj.RegTimeFmt}}加入)
            {{if ge .CurrentUser.Flag 99}}
            &nbsp;&nbsp;&nbsp; • ({{.Uobj.Flag}}) <a href="/admin/user/edit/{{.Uobj.Id}}">编辑</a>
            {{end}}
        </p>
        <p>主贴： {{.Uobj.Articles}}  &nbsp;&nbsp;&nbsp; 回贴： {{.Uobj.Replies}}</p>
        <p>网站： <a href="{{.Uobj.Url}}" target="_blank" rel="nofollow">{{.Uobj.Url}}</a></p>
        <p>关于： <br/> {{.Uobj.About}}</p>
    </div>
    <div class="c"></div>
</div>


<div class="nav-title">
    {{.Uobj.Name}} <a href="?act=post">最近发表的帖子</a> | <a href="?act=reply">最近回复的帖子</a>
</div>

<div class="main-box home-box-list">

    {{range $_, $item := .PageInfo.Items}}
    <div class="post-list">
        <div class="item-avatar">
            <a href="/member/{{$item.Uid}}"><img src="/static/avatar/{{$item.Avatar}}.jpg" alt="{{$item.Name}}" /></a>
        </div>
        <div class="item-content">
            <h1><a href="/t/{{$item.Id}}">{{$item.Title}}</a></h1>
            <span class="item-date"><a href="/n/{{$item.Cid}}">{{$item.Cname}}</a>  •  <a href="/member/{{$item.Uid}}">{{$item.Name}}</a>
                • {{$item.EditTimeFmt}}
                {{if $item.Comments}}
                 • 最后回复 <a href="/member/{{$item.Ruid}}">{{$item.Rname}}</a>
                {{end}}
            </span>
        </div>
        {{if $item.Comments}}
        <div class="item-count"><a href="/t/{{$item.Id}}#reply{{$item.Comments}}">{{$item.Comments}}</a></div>
        {{end}}
        <div class="c"></div>
    </div>

    {{end}}

    <div class="pagination">
        {{if .PageInfo.HasPrev}}
        <a href="/member/{{.Uobj.Id}}?act={{.Act}}&btn=prev&key={{.PageInfo.FirstKey}}&score={{.PageInfo.FirstScore}}" class="float-left">&laquo; 上一页</a>
        {{end}}
        {{if .PageInfo.HasNext}}
        <a href="/member/{{.Uobj.Id}}?act={{.Act}}&btn=next&key={{.PageInfo.LastKey}}&score={{.PageInfo.LastScore}}" class="float-right">下一页 &raquo;</a>
        {{end}}
        <div class="c"></div>
    </div>

</div>



{{ end}}

